<template>
	<view class="appointment">
		<view class="shop">
			<image :src="headImg" mode="widthFix" class="headImg"></image>
			<view class="shopText">
				 <text>尤美佳宠物生活馆</text>
				 <text>地址：石家庄桥西区宫北路11号</text>
				<view class="">
					<image src="../../static/xj2.png" mode="widthFix" v-for="item in 5" :key='item'></image>
				</view>
			</view>
			
		</view>
		<view class="introduce">
			<text >门店介绍</text></br>
			<text>{{introduce}}</text>
		</view>
		<view class="Time">
			<text>选择时间</text>
			<text>{{Time}}</text>
			<image src="../../static/yjt.png" mode="widthFix"></image>
		</view>
		<view class="service">
			<view class="serItem" v-for="(item,index) in serImg" :key='index'>
				<image :src="item" mode="widthFix"></image>
				<text>{{ser[index]}}</text>
				<text>预约</text>
			</view>
		</view>
		<view class="submitOrder">
			
			<view class="">
				<text>价格</text>
				<text>￥40</text>
			</view>
			<view @click="gomyAppo">提交预订</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			headImg:'',
			serImg:[],
			introduce:'',
			ser:[
				"洗澡",
				"剪发",
				"造型",
				"剪指甲"
			]
		};
	},
	created() {
	let that = this
	this.$http({
		url:"/appointment/imgData",
		success(res){
			that.headImg=res.data.headImg
			that.serImg=res.data.serImg
			that.introduce=res.data.introduce
		}
	})
		
	},
	methods:{
		gomyAppo(){
			uni.navigateTo({
				url:'./myAppo'
			})
		}
	},
	computed:{
		Time(){
			let date=new Date()
			return date.getFullYear()+'/'+date.getMonth()+"/"+date.getDay()
		}
	}

};
</script>

<style scoped>
	.submitOrder{
		height: 98rpx;
		width: 100vw;
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 0 20rpx;
		box-sizing: border-box;
		position: fixed;
		bottom: 0;
		left: 0;
		background-color: #FFFFFF;
		font-size: 28rpx;
		border-top: 2rpx solid #eee;
		}
		.submitOrder text:nth-of-type(2){
			color: rgb(255, 149, 64);
			
		}
		.submitOrder view:nth-of-type(2){
			color: #fff;
			padding: 20rpx 50rpx;
			background-color: rgb(255, 149, 64);
			border-radius: 40rpx;
			}
.shop{
	width: 100vw;
	display: flex;
}
.shop .headImg{
	width: 20vw;
	margin-left: 10rpx;
	margin-right: 10vw;
}
.shopText{
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-around;

}
.shopText text:nth-of-type(1){

}
.shopText text:nth-of-type(2){
	font-size: 24rpx;
	color: #999;
}
.shopText view{
	display: flex;
	
}

.shopText image{
	width: 20rpx;
	margin: 0 10rpx;
}
.introduce{
		padding: 10rpx;
		box-sizing: border-box;
		color: #666;
		}
		
.introduce text:nth-of-type(1){
	font-size: 28rpx;
	}
.introduce text:nth-of-type(2){
	font-size: 24rpx;
	}
	
.Time{
	display: flex;
	width: 100vw;
	height: 10vh;
	padding: 10rpx;
	box-sizing: border-box;
	align-items: center;
	border-top:6rpx solid #eee ;
	border-bottom:6rpx solid #eee ;
}
.Time text:nth-child(1){
	font-size: 28rpx;
	color: #666;
	margin-right: 30rpx;
}

.Time text:nth-child(2){
	font-size: 20rpx;
	color: #999;
	flex: 1;
}
.Time image{
	width: 30rpx;
	margin-right: 50rpx;
}

.service{
	width: 100vw;
	height: 200rpx;
	display: flex;
	justify-content: space-around;
	align-items: center;
	margin-top: 30rpx;
}
.serItem{
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	align-items: center;
}
.serItem image{
	width: 100rpx;
}
.serItem text:nth-of-type(1){
	font-size: 24rpx;
}
.serItem text:nth-of-type(2){
	margin-top: 10rpx;
	font-size: 24rpx;
	color: rgb(255, 169, 102);
	padding: 2rpx 20rpx;
	border-radius: 10rpx;
	border: 2rpx solid rgb(255, 169, 102);
}
</style>
